import $t from './language'
// 给返回的格式进行转换
export function reverseConversion(arr){
    return Object.values(arr.reduce((acc, obj) => {
        if (!acc[obj.properName]) {
            acc[obj.properName] = { name: obj.properName, children: [],id:obj.id,goodsId:obj.goodsId };
        }
        if (!acc[obj.properName].children.includes(obj.specProper)) {
            acc[obj.properName].children.push({name:obj.specProper,isChecked:false});
        }
        return acc;
    }, {}));
}
export function NumToFom(num){
    console.log(num,2132312)
    // if (num<10000){
    //     return num
    // }else if (num<1000000){
    //     let s = parseInt(num / 10000)
    //     return s + this.$t('h.万元')
    // }else{
    //     let s = parseInt(num / 10000)
    //     return s +this.$t('h.万元')
    // }
return num
}